A Cure For Ad-Fraud: Turning Fraud Detection Into Fraud Prevention